package com.suray.attendance.model.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: jianglinyu
 * @CreateTime: 2023-07-08  10:38
 * @Description: 钉钉部门
 * @Version: 1.0
 */
@Data
@ApiModel(value = "DeptInfo")
@TableName("ding_dept_info")
public class DeptInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部门编号")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "部门编号父id")
    @TableField("pid")
    private Long pid;

    @ApiModelProperty(value = "部门名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

}